package lei.f_java_string_stringbuffer;

/**
 * @className: Java_StringBuffer
 * @author: xl
 * @date: 2025/3/1 14:54
 * @Version: 1.0
 * @description:
 */

public class Java_StringBuffer {


        public static void main(String args[]){
            StringBuilder sb = new StringBuilder(10);
            sb.append("Runoob..");
            System.out.println(sb);
            sb.append("!");
            System.out.println(sb);
            sb.insert(8, "Java");
            System.out.println(sb);
            sb.delete(5,8);
            System.out.println(sb);

            sb.reverse();
            System.out.println(sb);
        }
}

